package com.spence.wsdemo.entity;

import lombok.Getter;
import lombok.Setter;

import java.security.Principal;

/**
 * @author spence_xu
 * @date 2019/7/9 13:16
 */
@Getter
@Setter
public class WsPrincipal implements Principal {
    /**
     * 唯一名称
     */
    private String name;

    public WsPrincipal(String userName) {
        this.name = userName;
    }

    @Override
    public String getName() {
        return name;
    }
}
